import request from '@/utils/request'

// 创建内容
export function createSeekContent(data) {
  return request({
    url: '/car/seek-content/create',
    method: 'post',
    data: data
  })
}

// 更新内容
export function updateSeekContent(data) {
  return request({
    url: '/car/seek-content/update',
    method: 'put',
    data: data
  })
}

// 删除内容
export function deleteSeekContent(id) {
  return request({
    url: '/car/seek-content/delete?id=' + id,
    method: 'delete'
  })
}

// 获得内容
export function getSeekContent(id) {
  return request({
    url: '/car/seek-content/get?id=' + id,
    method: 'get'
  })
}

// 获得内容分页
export function getSeekContentPage(query) {
  return request({
    url: '/car/seek-content/page',
    method: 'get',
    params: query
  })
}

// 导出内容 Excel
export function exportSeekContentExcel(query) {
  return request({
    url: '/car/seek-content/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
